<?
ob_start();
session_start();
if(!session_is_registered("user"))
header("location:home_admin.php")
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>hrd</title>
<link href="styleadmin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="styleadmin.css" type="text/css" />
<style type="text/css">
<!--
body {
	
}
.style3 {
	color: #999999;
	font-size: 18;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style5 {color: #334D55}
.style7 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #334D55; }
-->
</style></head>

<body>
<div id="header">
    <img src="image/logo_kanisius.gif" />
</div>

<div id="garis">
</div>

<div id="content">
     <div id="leftcontent">
	 <div id="linksectionhome"><a href="home_admin.php">Home</a></div>
	 <div id="linksectionhome"><a href="admin.php">Administrator</a></div>
	 <div id="linksectionhome"><a href="hrd.php">HRD</a></div>
	 <div id="linksectionhome"><a href="logout_admin.php">Logout</a></div>
</div>

<div id="rightcontent">
<?php
			 include "../librari/koneksi.php";
			echo "
	  <table>
	<tr>
	<th>No</th>
	<th>id HRD</th>
	<th>Nama HRD</th>
	<th>Password</th>
	<th>Action</th>
	</tr>";
			$tampil = "Select * from hrd order by idHRD asc";
			$hasil=mysql_query($tampil);
                $no=+1;
                while ($r=mysql_fetch_array($hasil)){

	 echo "
	 	   <tr><td>$no</td>
           <td>$r[idHRD]</td>
		   <td>$r[nmHRD]</td>
		   <td>$r[passwdHRD]</td>
		   <td><center><a href=ubahHrd.php?id=$r[idHRD]>Ubah </a><a href=hapus_hrd.php?id=$r[idHRD]>Hapus</a></div></td>";
           
$no++;
}
echo "</table>";
	
?>
<form id="form1" name="form1" method="post" action="tmbHRD.php">
  <label>
  <input type="submit" name="TAMBAH" value="TAMBAH" />
  </label>
</form>
</div>
</div>

</body>
</html>

<?
ob_end_flush();
?>
